package com.ssm.service;

import java.util.HashMap;
import java.util.List;

import com.github.pagehelper.Page;
import com.ssm.model.GradeModel;
import com.ssm.model.LoginInfo;
import com.ssm.model.MaterialTemplateModel;
import com.ssm.model.TeacherModel;

public interface TeacherService {
	/*admin*/
	//显示教师列表
	Page<TeacherModel> selectTeacher(Integer pageNum,String teacherName,Integer tGrade);
	//查找教师
	LoginInfo selectById(Integer id);
	//增加教师
	Integer insertTeacher(LoginInfo loginInfo);
	//修改教师
	Integer updateTeacher(HashMap<String, Object> map);
	//删除教师
	Integer deleteTeacher(Integer teacherId);
	//为教师安排评教
	Integer insertAssessPlan(Integer tId,Integer pId);
	//显示评估进度
	HashMap selectAssessByTid(Integer tId);
	//专业列表
	List<GradeModel> selectGrades();
	//查询课程
	TeacherModel selectCourseByTid(Integer tId);
	Integer checkCourseByTid(Integer tId);
	Integer insertCourse(String courseData,Integer tId);
	Integer updateCourse(String courseData,Integer tId);
	
	/* front */
	TeacherModel selectTeacherById(Integer tId);
	//完善个人信息
	Integer updateInfo(TeacherModel teacherModel);
	//更新验证码
	Integer updateVerifyByEmail(Integer tId,String email,String verify);
	//验证验证码
	Integer checkVerify(Integer tId,String tEmail,String tVerify);
}
